package com.scalar.chiptrack.operations.dataentry.inventoryTransit.actioncommands;

import com.scalar.chiptrack.actioncommands.ActionCommand;


/**
 * Created by IntelliJ IDEA.
 * User: ChandraSekhar
 * Date: Fed 06, 2008
 * Time: 12:28:08 PM
 */
public class InventoryTransitActionCommandFactory {
    private InventoryTransitActionCommandFactory()
    {
    }

    public static ActionCommand getActionCommand(String action)
    {

        if (action == null || "processTypes".equalsIgnoreCase(action))
        {
            return new InventoryTransitLoadProcessTypesCommand();
        }
        else if ("partNumbers".equalsIgnoreCase(action) || "search".equalsIgnoreCase(action) )
        {
            return new InventoryTransitLoadPartNumbersCommand();
        }
        /*else if ("lotNumbers".equalsIgnoreCase(action))
        {
            return new InventoryTransitLoadLotNumbersCommand();
        }*/
        else if ("save".equalsIgnoreCase(action) || "confirm".equalsIgnoreCase(action) )
        {
            return new InventoryTransitSaveCommand();
        }
        return null;
    }
}
